package gui;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class PropertyFileReader {

    public static String[] getProperties() throws FileNotFoundException, IOException {

        //Reading properties file in Java example
        Properties props = new Properties();
        FileInputStream fis = new FileInputStream("src/gui/init.properties");
     
        //loading properites from properties file
        props.load(fis);

        //reading proeprty
        String[] prop = new String[5];
        prop[0] = props.getProperty("tablero.dim");
        prop[1] = props.getProperty("tablero.packages");
        prop[2] = props.getProperty("agent.class");
        prop[3] = props.getProperty("agent.number");
        prop[4] = props.getProperty("agent.tickspeed");
        return prop;

    }
}

